package org.jdcenter.rmi.abs;

import org.jdcenter.rmi.JDSCallback;
import org.jdcenter.rmi.abs.Channel;
import org.jdcenter.rmi.abs.ChannelException;
import org.jdcenter.rmi.abs.URLException;

public interface ChannelFactory {
    Object alloc(String url) throws URLException, ChannelException;
    Object alloc(String url, JDSCallback callback) throws URLException, ChannelException;
    void free(Channel channel) throws ChannelException;
}

